<?php
/**
 * Created by PhpStorm
 * User: honglin
 * Date: 2022/9/14
 * Time: 下午3:16
 */

namespace App\Controller\Tasker\Task;

use App\Controller\Task\BaseController;
use App\Service\Task\TaskLogService;
use Hyperf\Di\Annotation\Inject;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\FormData;
use Yj\Apidog\Annotation\PostApi;

/**
 * @ApiController(prefix="tasker/task/log")
 */
class TaskLogController extends BaseController
{

    /**
     * @Inject()
     * @var TaskLogService
     */
    protected $service;

    /**
     * @PostApi(path="lists")
     * @FormData(key="types")
     */
    public function lists(){
        $params = $this->getParams();
        $res = $this->service->lists($params);
        _SUCCESS($res);
    }
}